


local mt = ac.skill['白虎光环']

function mt:on_add()
    local hero = self.owner
    self:gc(hero:add('敏捷成长',self.data3))
    self:gc(hero:add_buff '光环'{
        model = [[war3mapImported\GlowingAura.mdl]],
        buff_name = '白虎光环',
        buff_data = {data1 = self.data1,data2 = self.data2},
        area_type = 'ally',
        aura_area = 900,
    })
end

local buff = ac.buff['白虎光环']
buff.cover_type = 1
buff.cover_max = 1
buff.data1 = 0
buff.data2 = 0
buff.model = [[Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl]]

function buff:on_add()
    local hero = self.owner
    self:gc(hero:add_effect(self.model,'origin'))
    self:gc(hero:add('攻击加成',self.data1))
    self:gc(hero:add('移动速度',self.data2))
end



local mt = ac.skill['月神之箭']
mt.temp = '攻击触发'
mt.odds = 15
mt.missile_art = [[91cd48b971932edfc649d155403740e0.mdx]]

function mt:on_run(hero,target)
    local angle = hero:get_point()/target:get_point()
    local damage = hero:get('攻击') * self.data1/100
    local mover = hero:launch_wave(self.missile_art,angle,1500,1500,nil,90)
    local track = hero:track_select(mover,90,mover.distance/mover.speed,function(u)
        hero:create_damage(u,damage,self)
    end)

end